Error Handling in timer task