delete temp file and encoded video when leave