move killprocess php function