support for process name in kill function.

number -> kill by PID
string -> kill by process name