error if exit code is not 0