public void close() {
   try {
     super.close();
   } finally {
     socketBindings.unregisterBinding(this);
   }
 }
 public synchronized void bind(SocketAddress addr) throws SocketException {
   super.bind(addr);
   socketBindings.registerBinding(this);
 }