Kate segfaults sometimes if you switch sessions because these processes were still running. So, ensure they are killed when we are destructing. (cherry picked from commit ae331887)