Move pool initialization into a separate method that is called after the connectionmanager constructor is done. Closes #2048