/** Close out the manager stream by clearing the read cache */
 public void close() {
   // write out all of the remaining reads
   while (!waitingReads.isEmpty()) writer.addRead(waitingReads.poll().read);
 }