Refactoring of the Getwork Worker connection management