Revert "praveen|not doing anything on connection close since the task runner daemon will close the connection"

This reverts commit 49e2ebbb25cb237fc6134233817415a341ae5eb8.