Adds errno.ECONNRESET exception handling