Index: plugins/project-manager/plugin.c
===================================================================
--- plugins/project-manager/plugin.c	(revision 4007)
+++ plugins/project-manager/plugin.c	(working copy)
@@ -170,8 +170,6 @@
 {
 	project_manager_plugin_close (ANJUTA_PLUGIN_PROJECT_MANAGER (plugin));
 	ANJUTA_PLUGIN_PROJECT_MANAGER(plugin)->close_project_idle = -1;
-	/* Self destruct */
-	anjuta_plugin_deactivate (ANJUTA_PLUGIN (plugin));
 	
 	return FALSE;
 }
@@ -1484,9 +1482,11 @@
 	AnjutaProfileManager *profile_manager;
 	ProjectManagerPlugin *pm_plugin;
 	pm_plugin = ANJUTA_PLUGIN_PROJECT_MANAGER (plugin);
-	
+
 	if (pm_plugin->close_project_idle > -1)
+	{
 		g_source_remove (pm_plugin->close_project_idle);
+	}
 
 	/* Close project if it's open */
 	if (pm_plugin->project_root_uri)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 4007)
+++ ChangeLog	(working copy)
@@ -1,3 +1,9 @@
+2008-06-13  Massimo Cora'  <maxcvs@email.it>
+
+	* plugins/project-manager/plugin.c (on_close_project_idle),
+	(project_manager_plugin_deactivate_plugin):
+	removed a forced anjuta_plugin_deactivate () that caused a critical-warning.
+
 2008-06-13  Naba Kumar  <naba@gnome.org>
 
 	* plugins/file-loader/plugin.c (setup_recent_chooser_menu):
