Fix connection pending count.

To handle the case where Receive is called before Send, decrement the
pending count after the reply is read.

Fixes #78