improved error logging
Version bump to 1.3.9
Regenerate gemspec for version 1.3.9