Prevent go way SSH session killing running job
If you are executing a long running job over SSH session, when your SSH session is terminated for whatever reason, e.g. unstable network connection. Your long running job will die (it will receive a hangup/hup signal) when the SSH session was killed.
To overcome this, when executing long running job over SSH, use the following way
nohup program &