disconnect app if no client is passed