protected void sendClosingMessage(){
  try {
    send(ConnectionMessage.CLOSING,NetworkProtocol.TCP);
  }
 catch (  Exception e) {
    log.warning("TCP already disconnected or error: " + e.getMessage());
  }
  try {
    send(ConnectionMessage.CLOSING,NetworkProtocol.UDP);
  }
 catch (  Exception e) {
    log.warning("UDP already disconnected or error: " + e.getMessage());
  }
}

protected void sendClosingMessage ( ) { try { send ( ConnectionMessage . CLOSING , NetworkProtocol . TCP ) ; } catch ( Exception e ) { log . warning ( "TCP already disconnected or error: " + e . getMessage ( ) ) ; } try { send ( ConnectionMessage . CLOSING , NetworkProtocol . UDP ) ; } catch ( Exception e ) { log . warning ( "UDP already disconnected or error: " + e . getMessage ( ) ) ; } }
send a message ( hint ) that this end of connection is about to close
