close dialog on stop server