Connection disconnect functionality added.