recover from panic when invoking a job