close the connection