JMV,
Usually when Task_sleep() never returns its because the Timer used by the Clock module is somehow miss-configured.
Does your config file explicitly select a particular timerId to be used by the Clock module?
Clock.timerId = xyz;
If so, the problem may be corrected by simply removing this line from your config file.
Alan