Added ability to exit app