remove io_open().
remove return statements after mrb_raise().
IO#flush should raise an exception if it is closed.
more tests.