Change order of operations in shutdown
Change order of operations in shutdown

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