Ambiguous call resolved as CORE::close(), qualify as such or use &
Need to close the stream on "Bad file decriptor"
Fix IO::Pty and write()