Local Windows check, we sometimes get "UNKN - Item not found in agent output"

You should handle the long running tasks by killing the task e.g waitmax on linux. As Andreas mentioned, the system or the resource you call has a problem.