Terminate a process bound to this context.

    When a process is terminated, all the processes to which it is linked
    will be have their ``exited`` methods called.  Messages to this process
    will no longer be delivered.

    This method returns immediately.

    :param pid: The pid of the process to terminate.
    :type pid: :class:`PID`
    :returns: Nothing

def terminate(self, pid):
    """Terminate a process bound to this context.

    When a process is terminated, all the processes to which it is linked
    will be have their ``exited`` methods called.  Messages to this process
    will no longer be delivered.

    This method returns immediately.

    :param pid: The pid of the process to terminate.
    :type pid: :class:`PID`
    :returns: Nothing
    """
    self._assert_started()

    log.info('Terminating %s' % pid)
    process = self._processes.pop(pid, None)
    if process:
      log.info('Unmounting %s' % process)
      self.http.unmount_process(process)
    self.__erase_link(pid)