Make confirm on exit optional.