Fix logger initialization order bug
Control H5close() by POMAGMA_H5_CLOSE_AND_REOPEN