fixed reset of state on (refresh) and on (pull)
added exception handlers to all ec2 calls.