Call cleanupjob() after main business, not in submitdir.
Call cleanupjob() after main business, not in submitdir.

Since cleanupjob() calls Process.check(), which may raise ProcessError, calling
it in the try..finally handler was asking for trouble.

whilp/gsido,whilp/clusterui