run send-logs-to-s3 on shutdown