This begin...rescue into a block which can already be rescued doesn't look very good to me. I would say, please, try to rescue just the functions which can generate these exceptions you're trying to rescue.

I guess you're trying to request RequestError for meterpreter requests. If there are several meterpreter request, you can do something like:

```ruby

  def with_request_error_handling
     yield
  rescue RequestError => e
    # handle RequestError
  end

  with_request_error_handling { something_that_might_fail }

  with_request_error_handling { something_else_that_might_fail }

```

(snippet stolen from https://github.com/bbatsov/ruby-style-guide)