Dialog closes on success.