testing System.exit with try-finally