Looks like my comment about checking `if (nodeConnection.isConnected())` here got skipped.