memory fixes: restricting iterations for flowThrough, reducing chunk size to 5
memory fixes: cancelling the future on exception, will hopefully stop endless loops
Merge branch 'prime_memory_fixes'