Add an on-shutdown service