I have some scripts running in my server, sometimes my scripts may crash, ok that is something normal, but since a few days ago I started to see something very weird, in my terminal, I have many tabs running different scripts, and suddenly one tab is closed and therefore the script dies, I have no idea why the tab is automatically closed I've never seen such thing, I would like to know some suggestions about what I could do to investigate this kind of problem.
I am using Ubuntu 22.04
This answer to a similar question offers three methods to keep gnome-terminal open after your scripts exit.