Handle interaction page closure based on portal version

Patch created just as the last portal containing the bug was shutdown,
so the bug-handle code is untested.