Added a check for the command if it is aborted during its run. Update the TaskStatus with ABORTED value for the case.