add option to pause on exit