procutils: kill process group if proccess is the leader

This makes killing processes work properly if shell=True