how to prevent hardware failure