initial working implementation of shutdown service