add registration closing

Adding ability to close registration.