using command exit code properly.