Catch SIGINT in master, wait for children to exit.

The child processes were catching SIGINT to clean up, but the master
was getting killed before the children. Catch SIGINT in master too,
so we can wait for cleanup.

Also, stop catching SIGQUIT so we can still kill things. And clean
up some long lines and comments.