(Gibba2807) Prevent log pile being removed until closed

Fixed log piles being removed when all logs removed but GUI still open.
All GUIs (for the log pile) will now also be closed if the TE is removed
to prevent players placing logs into log pile after it has been removed.