Removing exit from quit event