Stability of cooled beams