error handling when connection closed to pool
Hi,

I am getting "connection closed" errors after running the proxy for ~10-20hrs. 
It must be from this:

2018-02-20 10:11: socket closed (x)
2018-02-20 10:11: connection closed (x)

line 74, connection.ts
console.log(`socket closed (${this.host}:${this.port})`);
this.emit("close");

then,

line 253, proxy.ts
connection.on("close", () => {
   console.log(`connection closed (${connectionId})`);
});
      
After that, no more shares get accepted by the pool.

Thanks
