Modified sub windows so they would prevent closing the entire
application.