The obvious question i have is why earlier it was not closing the connection? I am surely missing some context here