Addign error status flag to Fortran API
Temporary fix for error at op_exit() due to not closing HDF5 data structures