Don't attempt to destroy the surface if it wasn't created.
Fix Background Thread emulation shut down.