public void disconnect(){
  if (conn != null) {
    try {
      conn.close();
    }
 catch (    SQLException e) {
      logger.warn("Unable to close connection",e);
    }
  }
  try {
    closeBinlog();
  }
 catch (  IOException e) {
    logger.warn("Unable to close binlog",e);
  }
}

public void disconnect ( ) { if ( conn != null ) { try { conn . close ( ) ; } catch ( SQLException e ) { logger . warn ( "Unable to close connection" , e ) ; } } try { closeBinlog ( ) ; } catch ( IOException e ) { logger . warn ( "Unable to close binlog" , e ) ; } }
clean up after termination .
