Fix #580: Catch exceptions that escape JS test framework in test bridge
Merge pull request #583 from gzm0/failsafe-test-bridge

Fix #580: Catch exceptions that escape JS test framework in test bridge