onDisconnected callback gets called when comet connection is closed
Merge pull request #913 from nraychaudhuri/872_invoke_comet_disconnect_callback

now callbacks gets called when comet connection is closed