Should you be able to perform specific actions while being chased by an enemy?

To clarify as it's a bit specific: I am making a game that's part cleaning sim part RPG, hard to explain and sounds confusing, sorry. Most of the gameplay loop involves going to different rooms in a building and cleaning it. When you clean you stand in place and perform a short animation.

However some rooms also have enemies. If they spot you, they run after you. If after a little bit they can't see you, they stop chasing you. If they catch you, a battle starts, and if you win they're permanently dead. They're not obligatory and you are intended to skip them if you like (like if you get caught you can escape, think something like Fear and Hunger), as managing your resources for the final boss fight is intended to be a central element.

Having said that: many of the rooms in my game are not that big. Enemies are not present in every room, but some have more than one enemy. And I have been going back and forth with myself on whether I want the player to be able to continue cleaning while in a chase state.

I've been thinking like this - allowing it feels like it lessens the impact of the enemies and make them feel even more like small annoyances. I also worry about whatever bugs may arise from allowing the enemy to collide with the player while the cleaning animations are playing. On the other hand, not being able to perform a core action while being chased, which will naturally happen semi-frequently, *feels* bad. Even if the chase timer is very lenient, having that small window where you can't do anything but fight it or run around feels bad.

So I wanted to get some feedback. Sorry if it's difficult to visualize what I'm talking about, I can clarify further. Also sorry for talking too much and for any potential bad English.
Personally I think it would be weird to be cleaning while chased by a ghost or something. If there was a mid point between cleaning and battle I'd go with that.

Example while cleaning a ghost comes at you, you can press a Key to swing your broom for a small stun window to finish what you're doing, or escape. Smaller enemies are tunned for 2sec, bigger enemies are stunned for less etc etc.
Are there timers that force you to clean in X amount of time or you're out? if not then I don't think being able to clean while being chased is a good idea. An interesting way to make it work instead is to try and have it be strategic, as if it was a stealth game. Since the core gameplay loop is the cleaning not the combat, it being more like a stealth game could be a good reason for players to avoid the enemies instead of fighting them.
If it was not possible to fight when fleeing, then once you flee, you could never change your mind. I would either use a timer or a penalty factor, instead of prohibition.

Original thread: https://forums.rpgmakerweb.com/threads/should-you-be-able-to-perform-specific-actions-while-being-chased-by-an-enemy.182280/