Cloud9 Crashes Without Reconnecting

Hello,

I have been repeatedly running a python script on my beaglebone black rev.c which lasts ~20 minutes per run. The script performs the same process repeatedly e.g. heats up, cools down, heats up, cools down. Typically, the entirety of the script is able to be run multiple times. However, in about 1/20 runs Cloud9 will crash at random intervals in the script e.g. after 5 minutes or after 10 minutes. Cloud9 will continuously try to reconnect without success until the beaglebone’s power is reset.
When I repeatedly run the same script on the lxqt version of the image without cloud9, the script will never crash.

cat /var/log/syslog shows no abnormal behavior before the crash:

Jul 10 17:06:51 beaglebone dnsmasq-dhcp[1252]: DHCPACK(usb0) 192.168.7.1 e8:eb:11:88:51:2f name
Jul 10 17:07:45 beaglebone dnsmasq-dhcp[1252]: DHCPREQUEST(usb0) 192.168.7.1 e8:eb:11:88:51:2f
Jul 10 17:07:45 beaglebone dnsmasq-dhcp[1252]: DHCPACK(usb0) 192.168.7.1 e8:eb:11:88:51:2f name
Jul 10 17:08:41 beaglebone dnsmasq-dhcp[1252]: DHCPREQUEST(usb0) 192.168.7.1 e8:eb:11:88:51:2f
Jul 10 17:08:41 beaglebone dnsmasq-dhcp[1252]: DHCPACK(usb0) 192.168.7.1 e8:eb:11:88:51:2f name

free -m shows plenty of available memory.

Environment:

  • images: bone-debian-9.5-iot-armhf-2018-10-07-4gb.img and bone-debian-9.5-lxqt-armhf-2018-10-07-4gb.img
  • linux kernel: 4.14.71-ti-r80

Is this problem most likely caused by Cloud9 interface issues? If so how can I prevent this crash.

Any advice would be appreciated.
Thanks