Add the shutdown function for the service #30
make the log for the key class #28