Added finally block with DB close line
Added finally block with DB close line