fixing work container not closing