diff --git a/server/scripts/ispconfig_patch b/server/scripts/ispconfig_patch
index 9376ba19fe8584c7ba11a1280041b9d22172d7f8..6ed2a3f5aebb078e787f726d95c1e10565025416 100644
--- a/server/scripts/ispconfig_patch
+++ b/server/scripts/ispconfig_patch
@@ -102,6 +102,7 @@ echo "Please enter the patch id that you want to be applied to your ISPConfig in
 
 if(!is_installed('patch')) {
 	swriteln("The program 'patch' is missing on your server. Please install it and try again.");
+	exit;
 }
 
 $patch_id = simple_query('Enter patch id', false, '');