fix bug: close call triggering even if there's a validation error