Fixes logger issue (sends messages to the last exchange), renames some functions and masters stops workers before exiting now.