Index: /branches/cache/ippScripts/scripts/phase0_imfile.pl
===================================================================
--- /branches/cache/ippScripts/scripts/phase0_imfile.pl	(revision 9499)
+++ /branches/cache/ippScripts/scripts/phase0_imfile.pl	(revision 9500)
@@ -91,5 +91,4 @@
 {
     my $command = "$ppStats $uri -recipe PPSTATS " . RECIPE; # Command to run ppStats
-
     my ( $success, $error_code, $full_buf, $stdout_buf, $stderr_buf ) =
         cache_run(command => $command, verbose => 1);
@@ -150,5 +149,9 @@
 # Pau.
 
-END { system("sync") == 0 or die "failed to execute sync: $!" }
+END {
+    my $exit = $?;
+    system("sync") == 0 or die "failed to execute sync: $!";
+    $? = $exit;
+}
 
 __END__
