Bug 1017022 - Call close() on a valid object. r=jgriffin, a=test-only