Fix segmentation fault on Capture_stop