correct clearing node post leave, added debugs