Fixed state bug; parsing output; long pooling on task close - state change
Check for output size for pending list