repeatedly try to connect to server if no app is running