Removing worker from the known workers fixed

The worker wasn't removed properly from the known workers and remains there even after expiration. The map with workers is indexed by the worker's identity, not by the worker itself. The patch fixes it.