Added site wide error handling for non-validation errors. Fixes #629