Added remedial code to ensure the complete response is received and is cleaned after listing invoices request reported 26k was being bloated to 36k due to invisible chars! Need to investigate this.
Set service to nullify client on logout.
Added checks to identify unrealistic incoming size estimates and take remedial action. This arose after having to handle previously invalid size on real data.
Simplified regex for invisible / non-printing characters.