debugging task termination