@Override
 public boolean isOutputShutdown() {
   StreamConnection conn = connection();
   return conn == null || conn.isWriteShutdown();
 }