Magistrate’s disparaging remarks in rape case irks judge