Adicionado openConnection e closeConnection ao NetworkManager