Yes, it's _quit() that's throwing, because it's not yet in the connected state and is confusing that with an already-closed state.