WINTERMUTE: Support function for error handling