Try a terminal multiplexer, tmux is great.
I usually don't like giving advice where you may have to install something but tmux is a really handy app to have in your tool belt. (may already be installed)
You can fire off your app wrapped in tmux detach close you laptop go somewhere else log back in and re attach to your session still running in tmux. If your OS is older screen does similar but I prefer tmux.
you can launch a new app from command line or app formatted like this
tmux new-session "command1"
tmux new-session "ping 8.8.8.8"
But you probably should name your sessions.
Now short hand new session named muxping that starts in the background. The -d is detached.
tmux new -d -s muxping "ping 8.8.8.8"
now show it in background
tmux ls
attach to it
tmux a
In addition you can split screen and do many very handy things in tmux.
There are many sites with tmux cheat sheets that simplify the large man page. it is pretty easy to get started.