It is not possible! but the cure is tmux. I start tmux, start the operation and go on my way. If I return and find the connection has been broken, all I have to do is reconnect and type tmux attach

For installing tmux on Mac:

 brew install tmux  

tmux in the top image is running with vtop on the top pane and PM2 on the bottom.
Here is my .tmux.conf: