(#1658) - WIP - fix idb destroy