Added handling of synchronous disconnection so delegate and all other will be aware of disconnection