avoid long lines

It is a coding style violation.
log exceptions

Don't just throw away the useful error messages!