Destructor
vid.delete()
The method first calls cv.VideoWriter.release to close the already opened file.