diff --git a/spec/flipper/ui/actions/feature_spec.rb b/spec/flipper/ui/actions/feature_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/flipper/ui/actions/feature_spec.rb
+++ b/spec/flipper/ui/actions/feature_spec.rb
@@ -31,10 +31,13 @@ RSpec.describe Flipper::UI::Actions::Feature do
 
     context 'when feature_removal_enabled is set to false' do
       around do |example|
-        @original_feature_removal_enabled = Flipper::UI.feature_removal_enabled
-        Flipper::UI.feature_removal_enabled = false
-        example.run
-        Flipper::UI.feature_removal_enabled = @original_feature_removal_enabled
+        begin
+          @original_feature_removal_enabled = Flipper::UI.feature_removal_enabled
+          Flipper::UI.feature_removal_enabled = false
+          example.run
+        ensure
+          Flipper::UI.feature_removal_enabled = @original_feature_removal_enabled
+        end
       end
 
       it 'returns with 403 status' do
Ensure that default config is reset regardless of what happens in example.run