Avoid use-after-free by unsetting open_finished flag sooner
Avoid use-after-free by unsetting open_finished flag sooner

tintou/evolution-data-server,matzipan/evolution-data-server,gcampax/evolution-data-server,matzipan/evolution-data-server,Distrotech/evolution-data-server,matzipan/evolution-data-server,gcampax/evolution-data-server,gcampax/evolution-data-server,matzipan/evolution-data-server,gcampax/evolution-data-server,tintou/evolution-data-server,Distrotech/evolution-data-server,Distrotech/evolution-data-server,Distrotech/evolution-data-server,tintou/evolution-data-server,matzipan/evolution-data-server,Distrotech/evolution-data-server,tintou/evolution-data-server