Can a single comma close off two asides?

In your example, it would seem to me that it is the first and third commas which are parenthetical.

The one in the middle is performing a different function, namely of separating the main part of the subordinate clause, from its own relative clause.