Fixed bug where send error report not being called