protected override bool ReleaseHandle() { if (!IsInvalid) { if (Interlocked.Increment(ref disposed) == 1) { // Closing server session also closes all open url groups under that server session. return(HttpApi.HttpCloseServerSession(serverSessionId) == UnsafeNclNativeMethods.ErrorCodes.ERROR_SUCCESS); } } return(true); }