added `self.terminate()` as special call to exit the webworker,
fixed regtest call_from_worker_blocking.py.