Make command line wait for user to exit