[#39241571]  Add failed() and move get_analysis_connection() to the Analysis model.  Add analysis_cleanup() function.  Add exception handling and refactor monitor_analysis_execution() task to retry instead of using a while loop.  Add exception handling to pu_into_library().  Rename exception ResourceIDError to ResourceError.  Code cleanup.