chore(gitignore): ignore intellij files
chore(logging): improve logging in error case