Write group stats first, then content
minor clean up
Don't close on too much state, close #1939
Log groupRequest on redirect, close #1940
minor clean up