return -1 early when Protocol.read0 called on closed socket
Merge pull request #364 from mykmelez/read-on-closed-socket

return -1 early when Protocol.read0 called on closed socket
Various fixes for chrome.