Add sendReport method in report class
Add a try/catch
Add check befaore sending report
Add check before sending datas
Adding a logger