@Override protected void finalize(){
  try {
    if (socket != null) {
      socket.close();
      socket=null;
    }
    threadService.terminate();
  }
 catch (  Exception e) {
    if (SNMP_ADAPTOR_LOGGER.isLoggable(Level.FINER)) {
      SNMP_ADAPTOR_LOGGER.logp(Level.FINER,dbgTag,"finalize","Exception in finalizer",e);
    }
  }
}

@ Override protected void finalize ( ) { try { if ( socket != null ) { socket . close ( ) ; socket = null ; } threadService . terminate ( ) ; } catch ( Exception e ) { if ( SNMP_ADAPTOR_LOGGER . isLoggable ( Level . FINER ) ) { SNMP_ADAPTOR_LOGGER . logp ( Level . FINER , dbgTag , "finalize" , "Exception in finalizer" , e ) ; } } }
finalizer of the snmp protocol adaptor objects . this method is called by the garbage collector on an object when garbage collection determines that there are no more references to the object . < p > closes the datagram socket associated to this snmp protocol adaptor .
