Fix asynchronous orange.Stop()

orange.Stop() didn't wait until orange completely stops. The problem
sometimes caused test failure. This patch fixed it to wait until every
worker stops.