Make a clean way of exiting a prompt.