So what's the solution?
Well nohup comes to the rescue. What you can do is something like nohup
This is create the independent process and run it in background. So, even if parent proecss is killed it will continue to run. Just a sample code for this is:
nohup ./test1.sh &
rm -rf abc #say some huge directory
In the above example if u run test.sh then say dir abc in test1.sh is very huge and taking time to delete. In that case if you kill the parent script test.sh then test1.sh will still continue to run.