Simplified job execution and cleanup code.