THRIFT-2390 nodejs lib fix

fix for THRIFT-2390 (no close event when connection lost)