Make unregisterInput follow its spec.