I noticed that then layer consumer is never unregistered.