Add forgotted directory close