Implement removing threads.
Add counter for return addresses.
if a thread encounters a return and there
is no more return addresses, the thread will end.