Test HandleIO loop with error reader