adding System.exit on happy path to prevent brjs hanging waiting for threads to exit