Logging and showing errors to users. #970