shuts down conection on destroy