Add exceptionhandling to make sure the schedule tasks keeps running