added AcceptConnections while - to make a reconnect after connection lost possible