Shut down TabbedBrowser in MainWindow closeEvent.

Hopefully fixes #197.
Set title directly instead of using signals.

See #198, but this didn't fix it.