Flush stdout after debug logging