Improvements to logging for client and proxy, handle signals in client