code: protected void stopJob(Thread thread, Object job)
      {
          if (job instanceof Socket)
          {
              try
              {
                  ((Socket) job).close();
              }
              catch (Exception e)
              {
                  LogSupport.ignore(log, e);
              }
          }
          super.stopJob(thread, job);
      }
docs: Kill a job. This method closes IDLE and socket associated with a job
  
  @param thread
  @param job