Problem: zsocket_set_xxx dies miserably if you pass a zsock_t

Solution: catch this specific error and die less miserably.