Update error handler interface

This addresses #153.