What happens if broker connection fails?

Your algo execution is safely paused and resumes automatically once the connection is restored, if not terminated in the meantime.