This return shouldn't be never executed? (as the orionExitFunction() always will end in a exit()). However, in the unit test for this you look for this -1, so I'm probably wrong. I would like to understand how the whole thing is working :)