Make Close satisfy the io.Closer interface

I will also have a look at implementing Close properly in the near
future.