template-onboarding: even if an error happened, close the modal.