Don't process data from socket after socket closed. Fixes mscdex/ssh2#176.