delegate closed? to #to_io#closed? if available