public void close(){
  flush();
  stopBufferTimer();
}

public void close ( ) { flush ( ) ; stopBufferTimer ( ) ; }
flushes any buffered output by calling flush ( ) , and then close the handler and free all associated resources with this handler .
