Small re-factorization.
Another round at re-factoring this.
Prevent situation in which an attempt to obtain a connection would fail without even waiting for queue.