Add exception to log