fix missing msg object in LeaveHandler
move from msg.connection to msg.connections[i]