Several fixes to the QueueManager in particular when jobs are killed.