improve messages during publication and catch most serious migration server errors. Fix for #1011