socket.on('killed', function(data) {
        $('#run').text(runtext);
        running = false;
        console.log('Task killed.');
    });