video window will now close when you close application