Call plugin destroy methods before shutdown on signal