destroy

public abstract void destroy()

Destroys (terminates) the running process.

If the process is not running, an exception is thrown.

Throws

if the process was already stopped or never started

if interrupted while waiting for termination