Preventing unplanned downtime