Better error reporting for EMFILE crashes.

Fixes #1. Basically this is just error reporting pimped up slightly.