Add back impersonation context.
Fix problem with host not being assigned to JobObject.
Improve cleanup on container destroy.