Fix a crash with layers when JWM starts/restarts (issue #57).
Don't remove windows from the save set if the window has been destroyed.