Cleans up resources including the logic tracing observer. Note: SessionCapture cleanup should be done via DevToolsLogic.cleanup()