Closed Freyd- and kappa-categories