changed errors to use log; catch ctrl-c