Fix for session code for v3, also autocloses itself now when AppDomain is unloaded