diff --git a/libraries/PuSHSubscriber.inc b/libraries/PuSHSubscriber.inc
index 5f7cbc9c50ee3cbe48a3d93c4b004c3ef09a88f3..c5926defff9f568d8a45a63457f0a9f9055027f2 100644
--- a/libraries/PuSHSubscriber.inc
+++ b/libraries/PuSHSubscriber.inc
@@ -219,12 +219,12 @@ class PuSHSubscriber {
       if ($verify) {
         header('HTTP/1.1 200 "Found"', NULL, 200);
         print $_GET['hub_challenge'];
-        exit();
+        drupal_exit();
       }
     }
     header('HTTP/1.1 404 "Not Found"', NULL, 404);
     $this->log('Could not verify subscription.', 'error');
-    exit();
+    drupal_exit();
   }
 
   /**
diff --git a/plugins/FeedsHTTPFetcher.inc b/plugins/FeedsHTTPFetcher.inc
index b00c5f4fdb31e6b3c12b76621f314868ea0a9135..1b0039526c9cf673662dbdfe00969fec1d692f51 100644
--- a/plugins/FeedsHTTPFetcher.inc
+++ b/plugins/FeedsHTTPFetcher.inc
@@ -79,12 +79,12 @@ class FeedsHTTPFetcher extends FeedsFetcher {
       catch (Exception $e) {
         // In case of an error, respond with a 503 Service (temporary) unavailable.
         header('HTTP/1.1 503 "Not Found"', NULL, 503);
-        exit();
+        drupal_exit();
       }
     }
     // Will generate the default 200 response.
     header('HTTP/1.1 200 "OK"', NULL, 200);
-    exit();
+    drupal_exit();
   }
 
   /**