Fix typo causing false end-of-streaming info (issue #50).
Add comments, logs while debugging end-of-streaming issue and simplified logic.
Fix streaming progress calculation and catch possible errors when retrieving blockjob info (fixes #50).