When a DeixtoAgentWindow is closed, the form counter of MainWindow is reduced.