Returning an exit code when there is an error from the java process.