Check the rescue block in `execute_check`. it does this.
````ruby
            rescue => error
              @logger.warn('unexpected error', {
                :error => error.to_s
              })
              check[:output] = 'Unexpected error: ' + error.to_s
              check[:status] = 2
            end
````