Kill process when timeout occurs