fix issue where errors are not handled correctly

fix err messages
allow proxies to close
more consistent handling of return results on error