common error handling routine
add a common error handling function/macro/whatever, that catches errors, can be fed with error messages (or even warning/info messages) and bring program into a defined state
add a common error handling function/macro/whatever, that catches errors, can be fed with error messages (or even warning/info messages) and bring program into a defined state