The best way to quit a process is Taskkill
Code:TASKKILL [/S system [/U username [/P [password]]]] { [/FI filter] [/PID processid | /IM imagename] } [/F] [/T]
/F : force the quitting even if the process is locked
/S : your remote system with your user and password to login to
/f : Specifies that process(es) be forcefully terminated. This parameter is ignored for remote processes; all remote processes are forcefully terminated.