Improving logging in case of errors.