Closing video after finish playback with delay