check exit status of external solvers