[PATCH] jscript/tests: Add missing checks for Close() calls (Coverity).