destruct current encoder before building new