fixed thread not being ended properly and causing bullshit to happen