Hardening/exit out of libs

### Description
No more exits in the orion libraries (except the older libraries 'lm' and 'pa').
Instead of existing, a callback function is used (passed in the call to orionInit()) and the user of the library should exit inside that callback function.
In the case of unit tests we don't want to exit.