Added a button to close the app.