Worked on Reconnect after connections lost.

Hi Fred,

I have completed the changes and test on my Local with shut down and restart VNC server.


Regards,
You probably want to add

```
else
{
onError("Connection lost",null); 
}
```

back