Clean up network bridge if setup fails during device creation
Refactoring bridge functions to use struct methods