catch the failure when disposing of repositories