Fix _log for exceptions