DetectorTester closes camera on exit