Prevent setting tab width to 0.
Fix handling window closing in background page.

Issue #88