Stopping prompt from exiting