Agent deletes the private share token on graceful shutdown

Hi, I have noticed a persistent behavior with the agent.

I have been running a private tcpTunnel share with agent. Every time, the system reboots with a graceful shutdown, the agent is unable to restart the share since the private share token gets deleted.

The issue seems to be with how agent process cleans up at shutdown SIGNAL (I attribute the issue to line #388 in agent/agent.go file). It deletes share without reservation whereas it should check if a release is manually requested by the user or if the share itself is not a reserved private share so as to preserve a reserved share on controller for reattach.

I am running the share unattended on a Raspberry Pi with Pi OS Lite (Trixie).

Confirmed. Will be addressed in the next release.

v2.0.4 just dropped, which includes the fix.