fixed server connections closing order