OnCloseOperation fixed