Issue #11. Do not try to get data from a tcp frame when socket is closed.