Cleans up message transport logic.