Bugs with timer and exceptions