Connect an "exit" action to the close slot()