removed System.exit() calls in Scala example programs