Update TitleView.java

changed system.exit to finish