Cosmic Ray Acceleration in the Presence of Losses