Handle exceptions raised within routes