Added try/catch to timer

To find the error