Cosmetic:  Deleted extraneous whitespace
Cosmetic:  Sorted imports in Process
Added fold markers to receiveAndProcessMessagesFromWorker
Factored out code that manages the pending_quit set.