Temporal client failure when server restarts

Hi everyone.
I’m using temporalio python SDK version 0.1b2 and I see that if Temporal Server restarts, the error bellow appears on client, and pending workflows are not executed anymore by this client:

So, how to restart the client/application, or retry connection automatically, if connection with server is lost in any moment?