Nextcloud desktop client would not close

I kept closing the desktop app over and over (kde plasma) through the tray, and through ending the process in system monitor. nextcloud repeatedly and almost instantly ,started a new process. It didn’t stop until i repeatedly ran “killall nextcloud” in a terminal. What is going on?

I am under Ubuntu with Gnome but experience the same issue.

I once had that issue, then I did something that made it work again (but do not remember and considered a one-time-problem), but now I have the problem again too since 2 months or so.

Workaround that works for me: Left click on the tray icon, Menu opens, keep the mouse hovered over the menu and wait a few seconds. You might see a flickering of the menu and then you can quit the desktop app from the menu.

HTH, Martin.