make sure quit event gets posted