Support plugin unloading.

...same rationale as the PR for the UDP exchange.