added try-except in case something like connection goes wrong, to that it saved to sd, if it won't save to internet