When the python application making use of app.run() gets interrupted using CTRL-C (or OS equivalent), it raises an exception, even though it is supposed to be handled in codebase.
If I open Stockfish using chess.uci, and start a synchronous search, and then get bored and hit control-C, it seems to kill something from the concurrent.futures module stored in the variable ...