Implement io.Closer interface