Use file access property settings to close all remaining objects

Instead of calling H5close which could break other open hdf5 files just
close the indentifiers for the file that is currently being accessed
using access property list settings.