Fix silly typos and make the code a tad simpler.

In the end, we are only interested in the ConnectionClosed state, as
that is the only state when the completion queue won't be depleted.