Stop the timer on exit so the Python interpreter doesn't SEGFAULT when
the main window gets garbage collected.