Fixed bug related with close project action when the application is running.