StageCapture: fix error on shutdown()
StageCapture: coding style