1. Unnecessary file-open issue is fixed.
2. MPI file handle leakage is fixed.