Logs Exception.