Fix to no crash when there is no device
This fix remove a loop situation: when there is no device it goes to error state, and try to release the irq then goes to error state again. With this fix if there is no device the IOC goes to ERROR state and stays there, without crash.