fix exception propagation in the web layer