check to make sure app is running before polling

make adjustments for server down polling situation