Moved data server closed flag outside "private" dataserver