Implement cursor->close(). This implements #42.