Add logging to service termintate