Check pointer to singleton. Add to mpi function open, close.