Placed connection closing in finally Block

connection close should be present in finally block