return exit-code non null if failed.