modify worker shuting down algorithm on production