update handler error handling