[rpc] Remove auth cookie on shutdown