tsk_loaddb cleanup before exit