Put some code in place to terminate running threads after the user uses CTRL+C This counts for front-end and back-end