Possible fix for MPI issue #495

Close file objects after resident objects, as HDF5 in MPI mode won't close files with open objects.  Addresses issue #495.