python client: raise runtime error instead of system exit on authentication failure or timeout