Callback exception handling

Capture callback handler exceptions with a logger, and propagate the errors upwards. Also, fix a bug in the error logging of backends.py.