FOutputDeviceMemory::TearDown

Closes output device and cleans up.