added delete temp files on finish