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 22.214.171.124"
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 126.96.36.199"
now show it in background
attach to it
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.