It would be nice if using ctrl-c to stop shadow would flush the log before exiting. Probably would want to handle SIGTERM and SIGHUP as well.