Safely exit from slot on message initialization error
Add setSockOptions