close plugin servers before restart

Auto-reload still threw after a config change or similar restart. This fixes it.
call `teardown` if defined per plugin on restart
Merge pull request #551 from es128/patch-1

close plugin servers before restart