This reverts commit 54bf19ce9f7a7350badecd3118e81d04f45569ac.
Replaces all occurrences of the 'init_error_traps' function with 'catch_errors' across container and install scripts for consistency in error handling. Also adjusts indentation and formatting in some scripts for improved readability.