video continues playing after closing