diff --git a/src/nextflow.config b/src/nextflow.config
index 925ec23c8a6fce6e76a17c6d1498f39358739bc3..c1afd1e2766acf8d040de8435a6f1ce2d5cb7c42 100644
--- a/src/nextflow.config
+++ b/src/nextflow.config
@@ -17,6 +17,7 @@ profiles {
     docker.temp = "auto"
     docker.enabled = true
     process {
+      errorStrategy 'finish'
       memory = '16 GB'
       withLabel: big_mem_mono_cpus {
         cpus = 1
@@ -30,6 +31,7 @@ profiles {
     singularity.enabled = true
     singularity.cacheDir = "./bin/"
     process {
+      errorStrategy 'finish'
       memory = '16 GB'
       withLabel: big_mem_mono_cpus {
         cpus = 1
@@ -44,6 +46,8 @@ profiles {
     singularity.cacheDir = "$baseDir/.singularity_psmn/"
     singularity.runOptions = "--bind /Xnfs,/scratch"
     process{
+      errorStrategy { sleep(Math.pow(2, task.attempt) * 200 as long); return 'retry' }
+      maxRetries 3
       withLabel: big_mem_mono_cpus {
         executor = "sge"
         clusterOptions = "-cwd -V"
@@ -70,6 +74,8 @@ profiles {
     singularity.cacheDir = "$baseDir/.singularity_in2p3/"
     singularity.runOptions = "--bind /pbs,/sps,/scratch"
     process{
+      errorStrategy { sleep(Math.pow(2, task.attempt) * 200 as long); return 'retry' }
+      maxRetries 3
       withLabel: big_mem_mono_cpus {
         scratch = true
         stageInMode = "copy"