check to make sure app is running before polling

make adjustments for server down polling situation
Merge pull request #874 from strongloop/fix/868/-stop-polling-when-stopped

check to make sure app is running before polling