Trap Lagarto exception, workaround for #2261