Added try catch on data stringify and sending, because a lot of bad things can happen here