fixed some bugs that caused the server to crash if client disconnects.
meta info for capture device gets only send once now.