cas: Close io.Reader after decoding