Fixing select crash when socket is closed