AvoidShowCloseDialog