It does also work with the exception PermissionDenied.

I changed it.