/// <summary>
 /// Terminates the process.
 /// </summary>
 /// <param name="exitCode">The exit code for the process.</param>
 public void Kill(int exitCode = -1)
 {
     NativeMethodsHelper.TerminateProcess(this._server.Handle, this._processId, exitCode);
 }