Runaway electron mitigation by 3D fields in the ASDEX-Upgrade experiment