Provide UI when waiting for host app

Now we continuously poll the host if it's ready to terminate (every .5
second) in a thread while displaying an indefinite progressbar to the
user and telling him that we are waiting for the host to terminate.