Fix fd limits and error handling of delete.
Merge pull request #109 from nttks-dais/gacco2/master

Fix fd limits and error handling of delete.