closing on connection close