close plugin servers before restart

Auto-reload still threw after a config change or similar restart. This fixes it.