Accounting Price of Resilience in an Ecosystem