Add shutdown event to service provider

Signed-off-by: crynobone <crynobone@gmail.com>