After several hours of fighting I found a defect in ServerConnection.