ManagerMain form close fix