public void close() throws DataAccessException {
    isClosed = true;
    queue.remove(this);

    if (subscription != null) {
      if (subscription.isAlive()) {
        subscription.doClose();
      }
      subscription = null;
    }

    try {
      client.close();
    } catch (IOException ex) {
      throw convertSrpAccessException(ex);
    }
  }
 @AfterClass
 public static void shutdown() throws IOException {
   rc.close();
   rc2.close();
 }