add. timeout kwarg to set_connection.  This puts the connector to sleep on a failed connection.