Hey there! It sounds like you need to edit your power/battery settings for the machine, if you don't want it to turn off after 10 minutes of inactivity (or turn off the display, or lock, or logout, etc.)
Otherwise, there might be a setting somewhere else to have certain activities block the system from sleeping/locking/turning off the display. I'm sorry, I'm not aware of those settings, though.