To stop the Encoder, use the following code:
Encoder.Stop Set Encoder = Nothing
Setting the object to Nothing releases the object from memory.