fixed waitForDisconnected error message on Linux