wait for rogue threads to die using thread.join

Wait 1000 miliseconds for the thread to die if the thread is still alive