Otherwise the error is thrown in PHP8.1
There are situations when contexts will be deleted in the provider. The context list is not updated and so we have introduced a try catch.