Fix Unknown State on Disconnect

pika-python3 exhibits the same behaviour of the python2 variant described here:
 https://github.com/pika/pika/issues/371
This pull request is an adaptation of the upstream correction
 https://github.com/pika/pika/pull/346