Closes the video writer
vid.release()
The method is automatically called by subsequent cv.VideoWriter.open and by the cv.VideoWriter destructor.