Merged Exit Dialog and Clean up