[Daliworks] waiting until some jobs (related with Redis) is done when Worker.prototype.shutdown is called