added IsClosed/wait. removed dynamic pool