check if exit code is zero