Cleans up resources and stops session capture. Call this when the DevTools connection is no longer needed.