Add exception handlers
Make ctrl-c work to stop
Add a option for name