actually close the log when we're done