         print("-> SHUTTING DOWN MONGOD")
         
         task.terminate()
+        
+        if showsDesktopNotifications {
+            showNotification("mongod-starter", text: "MongoDB server has been stopped", senderTitle: "Stop MongoDB Server")
+        }
         
         self.serverStatusMenuItem.hidden = true
         self.startServerMenuItem.hidden = false

    @IBAction func showNotifications(sender: NSButton) {
        if showNotifCheckbox.state == NSOnState {
            showsDesktopNotifications = true
        } else if showNotifCheckbox.state == NSOffState {
            showsDesktopNotifications = false
        }
    }
    
    /* LAUNCH AND TERMINATION EVENTS */
    func applicationDidFinishLaunching(aNotification: NSNotification) {
        self.preferencesWindow!.orderOut(self)
        
        if defDataDir.stringForKey("defDataDir") != nil {
            let customDataDirectory = defDataDir.stringForKey("defDataDir")!
            dataStoreTextfield.stringValue = customDataDirectory

    let defBinDir = NSUserDefaults.standardUserDefaults()
    let defDataDir = NSUserDefaults.standardUserDefaults()
    let configFileDir = NSUserDefaults.standardUserDefaults()
    let showNotifications = NSUserDefaults.standardUserDefaults()
    var dataPath: String
    var binPath: String
    var configPath: String
