Check the critical process flag to avoid killing them

such processes include csrss.exe. Killing them results in a blue screen of death.