Properly deactivate the registration UI when registration is closed (fixes #10)