close the registration.