Added specs for IO.new with closed IO streams.
Added checks in IO.new for closed IO streams.