Change exit to return
Changing in the /example/ files almost all the exit() statements (2 had to be left) to return or exception+catch in main, so that resources are cleaned up properly when exiting tests.
Changing in the /example/ files almost all the exit() statements (2 had to be left) to return or exception+catch in main, so that resources are cleaned up properly when exiting tests.