diff --git a/include/class.upgrader.php b/include/class.upgrader.php
index e17b0a4b2626bb21cc3e7b2103c48b5a3a9c4568..ded4a344f935d308313eccbfc65b43460fd2f5fb 100644
--- a/include/class.upgrader.php
+++ b/include/class.upgrader.php
@@ -61,6 +61,11 @@ class Upgrader {
         return !strcasecmp($this->getState(), 'aborted');
     }
 
+    function abort($msg, $debug=false) {
+        if ($this->getCurrentStream())
+            $this->getCurrentStream()->abort($msg, $debug);
+    }
+
     function getState() {
         return $this->state;
     }
@@ -108,7 +113,8 @@ class Upgrader {
     }
 
     function getErrors() {
-        return $this->getCurrentStream()->getError();
+        if ($this->getCurrentStream())
+            return $this->getCurrentStream()->getError();
     }
 
     function getNextAction() {