Automatically closes tabs to reduce memory usage.