Use ErrClosing internally
Check if closing in Serve, not Accept
Rename StateData to StateHead