Added an action to exit the application.