Applying coding standards change and making sockets exception throwing