registration worker cleanup.

The actual steps will be reordered but i wanted to test the framework.