better magplip exception handling
more debug details