add proper error catch and logging
Merge pull request #2 from rsWinAutomationSupport/errorlogging

add proper error catch and logging