Added the ability to exit the application via the settings menu. We use the method finish() anywhere with the app to achieve this.