Add H5close() statements to clean up indentifiers.

Implement fix described in issue #193. This also fixes the error when running the tests:
```sh
The process cannot access the file because it is being used by another process: 'proto1.h5'
```
mentioned in issue #107