public synchronized static void cleanup() throws IOException {
    if (myTempDir == null) return;
    delete(myTempDir);
    LOG.info("deleted a working directory: " + myTempDir.getPath());
    myTempDir = null;
  }
public synchronized static void cleanup()