added a call to wait_for_close to allow for the video to be displayed