Fixes to header handling
Fix bug in driver base. Add full error logging, stack trace capture and encode.