cleanup previous connection