Use a contact manager abstraction and ensure that the server socket is recreated