Bug 818106 Fix: ScopedClose now considers errno EINTR.r=dhylands