closing the connection