Added fix for fatal error during worker cleanup that fixes issue #41

Also added running_count method to Mediator.  This adds additional possibilities for determining when to give a worker more work.