closing of connection in realease on exception