fixed host ip assignment and shutdown with xterms
fixes #189