better error handling for getting password data

ref TheWeatherCompany/grid-api#115
Merge pull request #37 from TheWeatherCompany/windows-support

better error handling for getting password data