In Debug.exit() don't call System.exit() if in unit test (breaks Gradle)