Unload plugins on server shutdown.

This way, plugins can do some final cleanup.