Add new Managed Client.

Add new Managed Client with portable library.
Null reference fixes.