Removing socket listeners when controllers are destroyed