Some HDF handles are left open
Created by: dominikwerder
Some HDF handles are left open after the file writer is finished with writing the file. This prevents the file from being properly closed as one can notice when one tries to use that same file again.