made the app close whey you hit the "x" on the choose dialog