Consolidate the state variables for when we close into _handle_connection_close and add back the connection_state_change_event parts into the respective methods for adding and removing them.
Consolidate the state variables for when we close into _handle_connection_close and add back the connection_state_change_event parts into the respective methods for adding and removing them.

shinji-s/pika,pika/pika,hugoxia/pika,vrtsystems/pika,zixiliuyue/pika,jstnlef/pika,renshawbay/pika-python3,benjamin9999/pika,fkarb/pika-python3,Tarsbot/pika,skftn/pika,reddec/pika,knowsis/pika,vitaly-krugl/pika,Zephor5/pika