use close instead of kill for cleaning tmp dir
1.0.1