Dragons send McGregor out a winner with upset win over Eels