I THINK I FIXED THE THREAD LEAKS