Implemented stopping of processes and kernel threads.