Moved the reading of the final MSG_DONE message from here to