diff --git a/pedi.cpp b/pedi.cpp
index 4bff52f533a4b35963d26e97d1aff3bec57b34ff..7507efa685d70a29cd950257e5b39480e7a96ca0 100644
--- a/pedi.cpp
+++ b/pedi.cpp
@@ -661,7 +661,7 @@ int main(int argc, char* argv[])
 		clean();
 		if(!my_options.quiet)
 			cout<<"PEDI: Cleanup complete!"<<endl;
-		exit(1);
+		return 0;
 	}
 	update_configs();
 	read_configs();