This reverts commit 83276b9576. This causes lots of segfaults and other strange stuff when a tab is closed.
83276b9576