Fixed OSX crashing when calling  UI.stop_timer. Fixes #6