updated for version 7.0020
diff --git a/src/os_unix.c b/src/os_unix.c
index ffc6965..08e9fc8 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -959,6 +959,12 @@
 #endif
     preserve_exit();		    /* preserve files and exit */
 
+#ifdef NBDEBUG
+    reset_signals();
+    may_core_dump();
+    abort();
+#endif
+
     SIGRETURN;
 }
 
@@ -2704,6 +2710,10 @@
 	return;
 #endif
 
+#ifdef FEAT_NETBEANS_INTG
+    if (usingNetbeans)
+	netbeans_send_disconnect();
+#endif
     exit(r);
 }