if (oldClient) {
      try {
        oldClient.dispose(callback);
      } catch (e) {
        logger.debug('PointToPointMessagingManager: Error while closing client', e);