Bug 827843: Check for closed state on relevant operations r=jesup,smaug