fixed compile-time error in Handler.ClearCookie
Added checking for the return value of Handler.Finish()