@Override
 public void cleanUp() {
   try {
     executor.awaitTermination(5, TimeUnit.SECONDS);
   } catch (InterruptedException e) {
     e.printStackTrace();
   }
 }
  @Override
  public void startStream() {

    task = executor.submit(new GMailImapProviderTask(this));
  }