[bin/si_monitortk] Keep track of the thread so we can close it cleanly when quitting and avoid ugly warnings.