[PATCH 2/4] schedsvc: Add support for task termination.