diff --git a/includes/batch.inc b/includes/batch.inc
index e89ab8d..8a3ddd0 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -161,6 +161,7 @@ function _batch_do() {
   list($percentage, $message) = _batch_process();
 
   drupal_json_output(array('status' => TRUE, 'percentage' => $percentage, 'message' => $message));
+  drupal_exit();
 }
 
 /**
