The kernel task is Mac OS’s system reserved process. You cannot terminate it as it is designed to stay open all the time. It helps to keep the CPU temperature in check.