Made 'fail' use IOException