diff --git a/src/Runner.php b/src/Runner.php
index <HASH>..<HASH> 100644
--- a/src/Runner.php
+++ b/src/Runner.php
@@ -19,7 +19,28 @@ use RuntimeException;
  */
 class Runner extends RoboRunner
 {
-    private $lastErrno = null;
+    private static $lastErrno = null;
+
+    /**
+     * Last error setter
+     *
+     * @param int $errNo Error code
+     * @return void
+     */
+    public static function setLastError($errNo)
+    {
+        static::$lastErrno = $errNo;
+    }
+
+    /**
+     * Last error getter
+     *
+     * @return int
+     */
+    public static function getLastError()
+    {
+        return static::$lastErrno;
+    }
 
     /**
      * Custom error handler that will throw an exception on any errors
@@ -39,7 +60,7 @@ class Runner extends RoboRunner
             $msg .= " [$file]";
         }
 
-        $this->lastErrno = $errno;
+        static::$lastErrno = $errno;
 
         // throw the exception
         throw new RuntimeException($msg, $errno);
@@ -58,7 +79,7 @@ class Runner extends RoboRunner
 
     public function shutdown()
     {
-        exit($this->lastErrno);
+        exit(static::$lastErrno);
     }
 
     /**
Workaround fix for the custom error handler

Since we are using our own Runner with the error handling, we
need a way to preserve or reset the last error.  This is especially
useful for ignore errors which were triggered and resetting them
to success (0).