Created statement to verify when a C task fail. And fixed a problem with
the C task script.