better logging and fewer instruments crashes

addresses #154 and some issues from appium-discuss