Remove stray os.close(fd)

A fallout from 2bc49e00d7485dabb5659c8104d5224ec1cad451.