ask for confirmation on exit.
some cleanup.