This seemed a bit sketchy to only disconnect if `_openDeferred` exists. There may be a use case I'm not thinking of. But I made this change https://github.com/adobe/brackets/pull/7008/files#diff-02116cf32f6e9db7008084a51a35dea8R1164 so that we clear it out when `open()` completes.