Make sure backdrops are restored correctly.
Also fixed a crash on exit