Reformat indent
Properly disconnect when aborting
Improved stability of chunk processor