If a broker refuses the connection, try the next

When trying to connect to a broker, catch the exception and try the next broker.

Fixes #140