/** Close the context. */ public void close() { try { ((Context) cx).exit(); } catch (Exception e) { suite.passed = false; file.passed = false; file.exception = "file failed with exception: " + e; } }