terminate task on respawn