Fix NullPointerException on halt

clientlib-java threw a NPE when halting, which caused the `System.exit(0);` in the webui to never run, which in turn meant that the webui never exited after pressing "shut down", even though the engine shut down.