Fix: Check ErrorReceived event for null value
Fix: Don't commit thread suicide on disconnect.
Fix: Check ReceiveEvent for null value before marshalling.