Fixed bug where disabled workers were not finished propely at the end of the execution