Style comment: in cases where most of a method is wrapped in a `begin/rescue` block, you can actually use the `def` statement as an implicit begin:

```ruby
def self.instances
  # get instances
rescue Puppet::ExecutionFailure
  return nil
end
```