- Move panic recovery defer to the beginning of main function to ensure it can catch panics from all subsequent function calls
- Remove unused setupErrorRecovery function
- Add explanatory comment for the defer placement
This change ensures proper error handling throughout the entire program execution, rather than just within the setupErrorRecovery function scope.