Pause video/audio expandos on close

Also re-plays them on open if they were playing before. Closes #689