Fixes #5 Thread counter wrong after auto-deletion