override wm_delete_window