removed connection close from my code