This `begin` / `rescue` isn't needed because all errors in `check` will be rescued and output as AgentLogs anyway.

(Also, in Ruby it's best to rescue `StandardError` instead of `Exception`, as `Exception` will rescue things like out of memory errors and syntax errors too, which isn't what you want.)