wrapped close in a ghost function like the other next functions