fix clear tmp instance dir at class teardown