close category connection