try { if(server!=null) { server.stop(); } } catch (InterruptedException ie) { if (sfLog().isErrorEnabled()){ sfLog().error(" Interrupted on server termination " , ie);
try { if (server != null) { server.stop();
  public void sfTerminateWith(TerminationRecord status) {      try {          if(server!=null) {            server.stop();          }      } catch (InterruptedException ie) {            if (sfLog().isErrorEnabled()){              sfLog().error(" Interrupted on server termination " , ie);            }      }      super.sfTerminateWith(status);  }