cleanup Messages sample