it is not only valid. It is the only good place to put this logic as the way to identify such errors is specific to each driver