Exit with java process error code