make ProfilingSession inherit MarshalByRefObject to make it work with MSTest and CallContext