Remove socket.io events when scope is destroyed