add io-wrapper exception check