Handle EAGAIN properly [#58]