renamed Close() in example