fixed bug that wiped shops on shutdown