Setup error handler, could update it later to email the data