store host and port as portal attribtues
removed catched TypeError exception
test fixes