Edited terminate process, changed kernal_mode to kernel_mode