Notify read() when socket is closed.