Maybe you want to unset PrintError, and/or use HandleError instead?
In reply to Re: STDIO handleing by almut in thread STDIO handleing by gemoroy