OPAL-2655 Make sure there are no exception when RestDatasource is disposed, otherwise it will not be removed from transient datasource registry