Fix broken test: nil.Close()