public void destroy() {
   Gateway.removeThread(this);
 }