(CDAP-834) Reuse exploded jar directory when possible.

are you assuming that the only thing that could make this fail is that another thread has already created the expandDir? What if it fails for some other reason? Then you would remove the tempDir and return the class loader as if there had been no error.