Add missing braces in finallyCloseStream template