Add CTRL+C handling to bail out timer thread