Terminate Process still has some bugs.