close modal on video end

changed close to trigger on video end instead of timeout.