restart service on exit