closed some file handles
closed some file handles


Former-commit-id: 48c70c31a8bcc5ac8544a20ed5dfa88103080d4c [formerly d66ce818e6753b99956e0183ada3ed312da75a80]
Former-commit-id: 25c6b92168691d9926a27c93ffa1350eaa8020a3
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine