Acecool Proper Tabs - Prevent closing locked tabs

This code will not work if this script is in use: