Revert "fix bug 1046511 - Don't close TOC without user consent"