call dual_camera.close() on exit to release capture threads