[tor-commits] [sbws/master] scanner: add function to stop threads on SIGTERM