Bug: closing the control parameters file after successful read