Damage-mitigating control of mechanical systems