Fix the process/kernel shutdown