Don't throw a error when writing JSON fails