Removed quit button and reassigned window close event to save