Implement set-error-handler! and error-handler