Did you try altering sendData() to publish to $aws/things/chicken-door/shadow/name/door/update instead of $aws/things/chicken-door/shadow/name/door/get/accepted
What happens if you publish to $aws/things/chicken-door/shadow/name/door/get/accepted using MQTT Broker. Does this cause AWS to terminate the connection?