TailScale machine goes down

I was able to set up exit node in Tailscale. Though on the last step the command “sudo tailscale up” didn’t work and i had to use the command from the troubleshoot article:

Article link: Userspace networking mode (for containers) · Tailscale
Command:
tailscaled --tun=userspace-networking --socks5-server=localhost:1055 --outbound-http-proxy-listen=localhost:1055 &
tailscale up --authkey=

But there is an issue. When i close the Terminal app window it tells “your action will interrupt SSH process” and after i close my exit node shuts down in the TailScale up. Though on the hosting website it’s still active and working fine

Can you help me out? What to do to fix it?