Fix call options to socket_error