Changed where process state is updated. Allowed non-Shell processes to
be set to success if they finish without setting their own status.