Fix a bug in client.py: undeclared finish variable.

When the connection to the server is lost, there was one case
in which the variable finish was not defined.