add closing of conn