final public boolean checkDSClosing(DistributionManager dm){
  InternalDistributedSystem ds=dm.getSystem();
  return (ds == null || ds.isDisconnecting());
}

final public boolean checkDSClosing ( DistributionManager dm ) { InternalDistributedSystem ds = dm . getSystem ( ) ; return ( ds == null || ds . isDisconnecting ( ) ) ; }
check to see if the distributed system is closing
