Cleanup bridge connections on shutdown