open fun endHandler(handler: Handler<Void>): CommandProcess
Set an end handler, this handler is called when the command is ended, for instance the command is running and the shell closes.
Return
a reference to this, so the API can be used fluently