Correctly remove node from usages map when a node disconnects