add 2 missing data types for df percentages
df: rename percentage types to a more generic name
df: remove trailing whitespaces
On error, write error to client handle, and to thread local storage

This allows connection errors to be retrieved