[service] return setup/shutdown functions from decorator