kill process and kill thread