Refactor: fencer: functionize cleaning up CIB connection
... for code isolation and to prepare for file split