begins clean up of the decoder