Move Process Killing to the Global Functions