Stop video before closing window

x