Raise server errors on visit and synchronize

This should hopefully make them appear earlier and be more helpful.