Fixed DataRef.close connection erroring out on non-root ref.