now callbacks gets called when comet connection is closed