if (connected)
if (channel.getState().isValid())
  public void finalizer()  {    if (connected)      {        try          {            close ();          }        catch (Exception e)          {			}		}	}