get socket option - right of error handling