cleaner error handling on UDP encapsultion sockopt failure