Clean-up command registration.