[fixes #2947] container#unregister

thoughts/feedback?