Fix issue where node.Close() was called on an already disconnected node