Add command line options and io watcher to quit the program