Added error logging for exceptions

Missing EOL