close the encoder!