More threading and fix bad logic
Check port before sending message to unreachable node