Added exception logging for client and server exceptions