The defining trait of a good officer is the ability to adapt to situations.
Seriously, if you need to take a break, just "Visit the Bridge". You are taken off the instance map and cannot be attacked while you are on the bridge. If you are on the sector map and AFK, you're gonna get hit. So form a strategy to deal with it. Star Fleet captains are trained to deal with obstacles.
Everyone here who is a trained Starfleet captain please raise your hand... No?
Any gamers? Oh would you look at that.