Wrap the logMe logic in try/catch

It turns out that if the log file isn't chmod777'd the whole
thing goes up in smoke (500 error).