call `teardown` if defined per plugin on restart