fixes #45: OnExit if still capturing -> stop it
fixes #45: OnExit if still capturing -> stop it

pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler,google/orbit,google/orbit,google/orbit,google/orbit,pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler