Some cleanup from receive_message_chain