Gospel timeout and error 500 protection, xml validation