Implement task killing PRD-1849

Task listing
Task killing 
several fixes
comments added