finish connection after get frontend