Fixes

Fixed file NULL error, if client not found, deletes dir.