Fixes #9, print 'exit' and exit cleanly on KeyboardInterrupt or EOFError