Fix unclean shutdown of unfinished PBF reader.

When the Reader object was destructed without all sub-threads being finished,
the threads weren't shutdown cleanly.
Add early break off capability to XML parser.
Cleanup next_buffer function in XML/PBFInput
Fix spacing