Only catch IOExceptions