Recreate keystore on any IOException.

- Fixes issues when setting up trakt and keystore is corrupted.