Amazing, with cleanup() at least a "hello-world-csv" is created when the stop button is hit. If the trade history is still present this moment I can indeed use it as a workaround for EXITRUN in trade mode.