this is the correct way to clean up timed out thread, it seems...
cleaner way (also works when the infite loop is commented out)
no leaks, yay!
do not leak memory even when we have glitch-induced timeout in handle_tag