Add proper exceptions and error messages to the errors.log