Wrappers for automatic resubmission of SGE tasks