Added System.exit to exception handlers