Now diconnects after query