Robustifying

Added deactivation of destroyed continuous agents in EM. Handling http
and parsing errors in RestPollingAgent.