PFA patch to fix the issue where it was not reporting error when it fails to starts & went into infinite loop recursion of popup when task is deleted from server(which is a transient issue).
RM#1679
Note: There is still TODO in this RM which I have added in code, for which I'm not able find any resolution meanwhile please review this issue.