This method will be called when the decoder is no longer required. It should clean up any resources still in use.