Handling failures to write to log file might be nice