Kill process using the proper OS command

The java process is not killed when using "serverProcess.kill"