...or even add a construct to trap PHP errors, such as:

```php
  trap(E_ALL, 'io.IOException', function() use($fd, $path) {
    $fd= fopen($path, 'r');
  });
```