I thiknk fail_with could be used here:

```ruby
fail_with(Exploit::Failure::NotVulnerable, "Unable to write to any folders in the PATH, aborting...")
```