Added resetConnection method