made default action when closing the window to shutdown app