DF-4546 - fixed crash after disconnecting from the server.