better exception handling with delegated hosts

this should fix  #9698