Write passwordstore into file more often, not just at exit.