[js] enhance exception test - validate actual catch blocks called, test invalid args
[net] add onTCPDisconnect() event handling
[net] test onTCPDisconnect