handle cases where the native socket is NULL