Close over exit code instead of using System.exit()
Close over exit code instead of using System.exit()

System.exit() seems to still be problematic if called from within a
signal handler. Instead, use an exitCode variable which all the signal
handlers close over, and quit the main loop instead of exiting.

https://github.com/ptomato/jasmine-gjs/issues/23

ptomato/jasmine-gjs,ptomato/jasmine-gjs