Aws shutdown hook