Fix compilation error
Improve Say() error message.
Fix bug in RemoveWriteQEntriesFor().
Add more asserts, fix log error, and fix bug in CreateTaskForFirstUndownloadedBlock().