I have witnessed shutdown errors that does not cause any issues. It could be a Ruby Runtime Interface Client (https://github.com/aws/aws-lambda-ruby-runtime-interface-client) bug only. Maybe we need some invoke hook to make sure SSM finished work? Will investigate later.