add shutdown notification for plugin providers

@DorianScholz Please review.