When you run the Flush Health Service State and Cache task in Microsoft System Center 2012 Operations Manager, the task may not complete and time out. What happens is that after you run the task, the agent health service is restarted in a clean state in which the record of the task is removed. Therefore, the agent does not realize that a flush task is already running and flushes the health service state and cache again. This behavior can result in an infinite loop that eventually causes a time-out.
This issue is fixed in System Center 2012 R2 but for all the details see the following: