oops, fixed logging of exceptions