Fix bug with passphrase. Persist settings on close. Add menu item for clearing settings.