Update to return IO_ERROR on certain failures