Rescue all errors, include Errno::EDENT

- Fixes #734