[bugfix] check server's state in callback OnServerDataSent() to distinguish from normal server stop from real application error