added server client disconnected functionality