ruby: remove needless close

The file discripter is closed by Ruby's IO#close.