Calling destructor on fatal errors

Avoids leaving TESTS_RUNNING.js around