Fixed infinite looping client cancel
Moved client reading into a separate task
Fixed debug output & client