Modals does not automagically close when a video stops playing.
Depending on what kind of video this is (inline/youtube/vimeo) there might be an option to trigger javascript as soon as it finishes. If so, then you could trigger the close method of the Modals javascript class.