open the door on leaving directory