If reconnect is false and auto_reconnect is true raise an error when trying to reconnect automatically