bug fix. wait() call to finished process should return immediately with doing nothing.