fixes the WebTab destroy process