Error handler is configurable
Tests!
document error handling