Updated the handling of the message downloading and message processing threads. They should now behave correctly.