It bothers me a bit that this method is called `failure` but that is a statement of how it is being used, not what it actually does. Pass an OK to it, and it will work fine.

Also, it doesn't use `this`, so I'd tend to move it to a companion object.