Add WeakEventManager to fix memory leaks with commands.