fix bug for already closed readed socket