Rearranged wire disconnect logic
Rearranged wire disconnect logic

Previously, we would delete the wire from the API and _then_ remove the
local references. This meant that the onWireChangeEvent that was fired
due to the first change would still see the same state and would fire
another change.

pickettd/code-dot-org,pickettd/code-dot-org,dillia23/code-dot-org,dillia23/code-dot-org,rvarshney/code-dot-org,pickettd/code-dot-org,pickettd/code-dot-org,dillia23/code-dot-org,dillia23/code-dot-org,dillia23/code-dot-org,rvarshney/code-dot-org,rvarshney/code-dot-org,pickettd/code-dot-org,rvarshney/code-dot-org,dillia23/code-dot-org,rvarshney/code-dot-org,dillia23/code-dot-org,rvarshney/code-dot-org,pickettd/code-dot-org,rvarshney/code-dot-org,rvarshney/code-dot-org,pickettd/code-dot-org,pickettd/code-dot-org,dillia23/code-dot-org