restrict interaction with closed pool
opened flag is now atomic
todo notes
basic pool closing
The close() method should be such that it blocks until all acquired resources are released.
cleanup-refactoring
test on blocked removing