Blah.  All the good ways to solve this (`$this` in a closure that can be wrapped by the exception handling, the `finally` keyword) require at least PHP 5.4.  :frowning: