Self-suspended Sheriff Niles to retire