[fixes #2947] container learns unregister

thoughts/feedback?