basic debug info added (save logs before cleanup)