give plugins some time to shutdown