Unlock directory before crash