Fixing various robustness issues from #4 (FileDescriptorLimit).