Handle KeyboardInterrupt in the tracker main loop