client: make sure the video recording stops corretly, refs #368