Added an 'exit' function that's a bit cleaner than CTRL-C

Pretty self explanatory really.