Improved the situation when the GBIF API stops responding.