terminate_connection(): only kill c->node->connection if it is pointing