Block a user
Pressing enter to finish a terminal.read() operation ends up pressing enter in the shell too
Chances are you may be able to make the shell wait for a bit after an app stops running or just block event processing entirely when an app is running if it doesn't already