Merge "Log and report terrible errors for improved debugging and tracking" into main