DWORD WINAPI GetLastError(void);

Introducing the LastError property containing the last connection error including timeouts. The property is available in boths CS and JS clients.