Runtime.getRuntime().halt(1) instead of throwing an exception.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>