tweak to hopefully fix overnight crashing when some sockets disconnect - maybe it's time to learn JS exception handling?