added watchdog for sqs writing