[refac] adjusted the dummy layer to use the separated init and close approach