Fix singleton implementation in ConnectionManager.