According to documentation when app.exit() is called the `will-quit` and `before-quit` events should not be fired. This is apparently not the case.
- Electron version: 0.36.5-0.36.9
- Operating system: OSX

atom/browser/browser.cc
bool prevent_default = false;
  FOR_EACH_OBSERVER(BrowserObserver,
                    observers_,
                    OnBeforeQuit(&prevent_default));
  return !prevent_default;
}
void Browser::OnWindowCloseCancelled(NativeWindow* window) {
  if (is_quiting_)
    
    
    is_quiting_ = false;
}
void Browser::OnWindowAllClosed() {
  if (is_quiting_)
    NotifyAndShutdown();
  else
    FOR_EACH_OBSERVER(BrowserObserver, observers_, OnWindowAllClosed());
}
void Browser::PlatformThemeChanged() {
  FOR_EACH_OBSERVER(BrowserObserver, observers_, OnPlatformThemeChanged());
}
}