adding closeAllConnections