code cleanup
IDEX-1391 Process line consumer should be closed by who opens or creates it