Extract exit status.