Auto close video window at end of video