Perhaps it should also log the exception here, passing it as the second argument.