I think fail_with could be used here:

```ruby
fail_with(Exploit::Failure::NotVulnerable, "DLL already exists in system folders.")
```