Fix handling of exit code.  Make sure to stageout to correct PFNs.