Connect switchboard cleanup to the end of a request.

Necessary for the caching to work properly. Without this, switches would remain cached locally, in memory, even after a change was made. Getting the switch to update would require a server restart.