Made uploading to ThingSpeak and Sen.se more robust.

Will now handle a situation where the Internet isn't available without
terminating.