Fix machines still showing as working when work is done.
Fix troublesome disabling of Vengeance Spirit for entities.
Existing boxes will now also be emptied if they contain invalid spirits.