fix: resolve error state in snap handler.