make sure open exceptions do not lose type information