Optimal Rejection of Persistent and Bounded Disturbances: Continuity Properties and Adaptation