add function CometIO.close()
notify client disconnection on sample app