check to make sure app is running before polling