Fixed pooling close detection.
Merge branch 'test' into dev