public void cancelThread(String name){
GlobalTaskRunner runContext = global.currentGlobalRunner;
if(runContext == null){
ui.warn(new LogEventToUI("shell", "not running"));
return;
}
SessionContext $ = Iterables.find(runContext.getSessions(), Predicates2.methodEquals("getName", name));