Close manifest file after reading and stop using not needed encoder.