Remove remnants of ad hoc error handling.

See #375.