git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1310 
91ce42f0-d328-0410-95d8-
f526ca767f89
 
       csprint(NULL, CS_END);
       csprint(NULL, CS_DISCONNECTED);
       csprint(NULL, CS_TERMINATED);
-      Exit();
+      #ifdef HAVE_WIN32
+         Exit();
+      #endif
       return NULL;
    }
 
       csprint(NULL, CS_END);
       csprint(NULL, CS_DISCONNECTED);
       csprint(NULL, CS_TERMINATED);
-      Exit();
+      #ifdef HAVE_WIN32
+         Exit();
+      #endif
       return NULL;
    }
    
    UA_sock = NULL;
 
    csprint(NULL, CS_TERMINATED);
-   
-   Exit();
+
+   #ifdef HAVE_WIN32
+      Exit();
+   #endif
    
    return NULL;
 }