Flush log on interrupt, just for convenience.