catch exceptions in timer