Added error logging to report handler