fix infinite loop at end of make test
fix infinite loop at end of make test

The beforeExit event handler was calling a setTimeout which would induce
another beforeExit event, and so on. To prevent this, the handler should
only trigger once.

gkz/LiveScript,gkz/LiveScript