Added a try,except for MainTimerEvent, fixs #11