Implemented thread safety, dispose, and structuremap registry.