Revert "Adding a closing function to reset connection"

This reverts commit 300594590568139637cd5b0eb358450bfb60d09b.