Send disconnectedFromServer message when socket fails with error