Fixed OSX crashing when calling  UI.stop_timer.