Avoiding costly machine failure